package com.sxj.springsourcecode.springframework.factory.config;

/**
 * @ProjectName: spring-source-code
 * @Package: com.sxj.springsourcecode.springframework.factory
 * @ClassName: SingletonBeanRegestry
 * @Author: sxj
 * @Description: 单例bean注册
 * @Date: 2024/2/21 11:29
 * @Version: 1.0.0
 */
public interface SingletonBeanRegestry {
    /**
     * 获取单例对象
     * @param beanName
     */
    Object getSingleton(String beanName);

    /**
     * 添加单例对象
     * @param beanName
     * @param bean
     */
    void addSingleton(String beanName,Object bean);



}
